// This is for the information/readme pulled from server
Ext.define("BioGene.view.InformationView", {
	extend: "Ext.Panel",
	alias: "widget.informationview",
	
	config: {
		id: 'readme',
		layout: 'fit',
    	styleHtmlContent: true,
    	html: 'Unable to load information from server',
    	scrollable: true
	},
	
    initialize: function () {
    
    	this.callParent(arguments);

        var closeButton = new Ext.Button({
            text: 'Close',
            ui: 'normal',
            handler: this.onCloseTap,
            scope: this
        });

        var topToolbar = new Ext.Toolbar({
            title: 'Information',
            docked: 'top',
            items: [
            	{ xtype: 'spacer' },
                closeButton
            ]
        });

        this.add([topToolbar]);

        
    },

    onCloseTap: function () {
        this.fireEvent("indexReturn", this);
    }
    
});